#define _CRT_SECURE_NO_WARNING
#include<iostream>
#include<vector>

using namespace std;
class Solution {
public:
    vector<int> runningSum(vector<int>& nums) {
        vector<int> ret;
        int n = nums.size();
        int sum = 0;
        for (auto& e : nums)
        {
            sum += e;
            ret.push_back(sum);
        }
        return ret;
    }
};